// Created by liusc on 2020/7/28--11:17.
<template>
    <div class="margin-box">
        <list-page
            :pager="pager"
            :data="tableData"
            :showSelectSearch="false"
            :placeholder="placeholder"
            @searchByKey="searchByKey"
            @changePageSize="changePageSize"
            @changeCurrentPage="changeCurrentPage">

            <template slot="table">
                <el-table
                    :data="tableData"
                    align="center"
                    @selection-change="selectionChange">
<!--                    <el-table-column type="selection" width="55"></el-table-column>-->
                    <el-table-column
                        label="预算编号"
                        prop="budgetCode">
                    </el-table-column>
                    <el-table-column
                        label="申请时间"
                        prop="applyDate">
                    </el-table-column>
                    <el-table-column
                        label="申请名称"
                        prop="applyName">
                    </el-table-column>
                    <el-table-column
                        label="申请部门"
                        prop="applyDept" :formatter="dictVal_department">
                    </el-table-column>
                    <el-table-column
                        label="申请资金(元)"
                        prop="applySum">
                    </el-table-column>
                    <el-table-column
                        label="审批状态"
                        prop="checkStatus" :formatter="dictVal_status">
                    </el-table-column>
                    <el-table-column
                        width="100px"
                        label="操作">
                        <template slot-scope="scope">
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==100 && scope.row.timeFlag==0" @click="toEditData(scope)">申报</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==101 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==101 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==102 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==102 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==103 && scope.row.isEdit==0" @click="toLookData(scope)">查看</el-button>
                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==103 && scope.row.isEdit==1" @click="toLookData2(scope)">查看</el-button>
<!--                            <el-button type="text" v-if="edit_button && scope.row.checkStatus==101" @click="toParameterData(scope)">生成台账</el-button>-->
<!--                            <el-button type="text" @click="deleteRow(scope)">-->
<!--                                <span class="text-danger">删除</span>-->
<!--                            </el-button>-->
                        </template>
            </el-table-column>
            </el-table>

            </template>
        </list-page>
    </div>
</template>

<script src="./addapply_list.js"></script>
<style scoped lang="scss">
    @import "./addapply_list";
</style>

